import Vue from 'vue'
import VueRouter from 'vue-router'
import ScreenPage from '@/views/ScreenPage'
import HuNanBMapPage from '@/views/HuNanBMapPage'
import TimeLinePage from '@/views/TimeLinePage'
import SearchPage from '@/views/SearchPage'
import TimeBar from '@/components/TimeBar'
import NameWordCloudPage from '@/views/NameWordCloudPage'
import WordCloudImg from '@/components/WordCloudImg'
import AgeDistributionPage from '@/views/AgeDistributionPage'
import FigureCityPage from '@/views/FigureCityPage'
import sexRatioPage from '@/views/sexRatioPage'
import FigureTypePage from '@/views/FigureTypePage'
import AvatarPage from '@/views/AvatarPage'
import FigureSummaryPage from '@/views/FigureSummaryPage'
import FigureLocationPage from '@/views/FigureLocationPage'
import VideoPlayPage from '@/views/VideoPlayPage'
import MarkerMapPage from '@/views/MarkerMapPage'
import ETimeLinePage from '@/views/ETimeLinePage'
import FigurePage from '@/views/FigurePage'
import MapPosition from '@/components/MapPosition'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/screen'
  },
  {
    path: '/screen',
    component: ScreenPage
  },
  {
    path: '/figure/:id',
    component: FigurePage
  },
  {
    path: '/BMapPage',
    component: BMap
  },
  {
    path: '/HuNanBMapPage',
    component: HuNanBMapPage
  },
  {
    path: '/TimeLinePage',
    component: TimeLinePage
  },
  {
    path: '/SearchPage',
    component: SearchPage
  },
  {
    path: '/TimeBar',
    component: TimeBar
  },
  {
    path: '/NameWordCloudPage',
    component: NameWordCloudPage
  },
  {
    path: '/WordCloudImg',
    component: WordCloudImg
  },
  {
    path: '/AgeDistributionPage',
    component: AgeDistributionPage
  },
  {
    path: '/FigureCityPage',
    component: FigureCityPage
  },
  {
    path: '/sexRatioPage',
    component: sexRatioPage
  },
  {
    path: '/FigureTypePage',
    component: FigureTypePage
  },
  {
    path: '/AvatarPage',
    component: AvatarPage
  },
  {
    path: '/FigureSummaryPage',
    component: FigureSummaryPage
  },
  {
    path: '/FigureLocationPage',
    component: FigureLocationPage
  },
  {
    path: '/VideoPlayPage',
    component: VideoPlayPage
  },
  {
    path: '/MarkerMapPage',
    component: MarkerMapPage
  },
  {
    path: '/ETimeLinePage',
    component: ETimeLinePage
  },
  {
    path: '/mapPosition',
    component: MapPosition
  },
]

const router = new VueRouter({
  routes
})

export default router
